package com.atguigu.serviceedu.service.impl;

import com.atguigu.serviceedu.client.OrdersClient;
import com.atguigu.serviceedu.service.CourseFrontService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: GengKY
 * @Date: 2021/11/9 14:11
 */
@Service
public class CourseFrontServiceImpl implements CourseFrontService {

    @Autowired
    OrdersClient ordersClient;

    @Override
    public boolean checkCourseIsBy(String courseId, String userId) {
        //问题代码
        boolean byCourse = ordersClient.isByCourse(courseId, userId);
        return byCourse;
    }
}
